package com.woniu.pay.feign;

import com.woniu.entity.Result;
import com.woniu.pay.entity.PayObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "pay-service", path = "/alipay")
public interface AlipayFeignClient {

    @PostMapping("/toPay")
    public Result toPay(@RequestBody PayObject payObject);
}
